package com.uplift.mobile.realty.service;

import com.uplift.common.base.ServiceReslut;
import com.uplift.mobile.realty.model.RealtyFileModel;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

public interface IRealtyFileService {
	public List<Map<String, Object>> queryRealtyFile(RealtyFileModel realtyFileModel);

	@Transactional
	public ServiceReslut addRealtyFile(RealtyFileModel realtyFileModel) throws Exception;

	@Transactional
	public ServiceReslut updateRealtyFile(RealtyFileModel realtyFileModel) throws Exception;

	@Transactional
	public ServiceReslut deleteRealtyFile(RealtyFileModel realtyFileModel);

	/**
	 * 获取文件分类数据
	 * @param realtyFileModel
	 * @return
	 */
	public List<Map<String, Object>> queryRealtyTypeFile(RealtyFileModel realtyFileModel);
}
